package com.lavender.util.util;

import org.springframework.util.ReflectionUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * ReflectionUtils：
 * </p>
 *
 * @author: zhu.chen
 * @date: 2021/3/29
 * @version: v1.0.0
 */
@RestController
public class ReflectionUtilsTest {

    private String name;

    @GetMapping("/reflect")
    public String reflect(){
        System.out.println(ReflectionUtils.findField(ReflectionUtilsTest.class, "name"));
        return "reflect";
    }

}
